package com.jzsk.variable.center.dao.zhengxin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 征信jar包关联字段配置
 * </p>
 *
 * @author jiangli
 * @since 2024-02-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ZxJarFieldsConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联的jar配置id
     */
    private Integer jarId;

    /**
     * 字段类型，1-直取字段，2-加工字段
     */
    private Integer fieldType;

    /**
     * 字段编码
     */
    private String fieldCode;

    /**
     * 字段名称
     */
    private String fieldName;

    /**
     * 数据类型，STRING-字符串；INTEGER-整数；FLOAT-浮点数；DATE-日期；DATETIME-日期时间；（非直取字段时有值，直取字段以直取字段数据类型为准）
     */
    private String dataType;

    /**
     * 优先级，整数数值，值越小越先执行
     */
    private Integer priority;

    /**
     * groovy脚本，目前只实现groovy脚本
     */
    private String script;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    private String createUser;


    public static final String ID = "id";

    public static final String JAR_ID = "jar_id";

    public static final String FIELD_TYPE = "field_type";

    public static final String FIELD_CODE = "field_code";

    public static final String FIELD_NAME = "field_name";

    public static final String DATA_TYPE = "data_type";

    public static final String PRIORITY = "priority";

    public static final String SCRIPT = "script";

    public static final String CREATE_TIME = "create_time";

    public static final String CREATE_USER = "create_user";

}
